<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="./acommon.jsp"%>
<!DOCTYPE html>
<html lang="zh">
<meta charset="utf-8">
<head>
<!-- Meta Tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Candidate HTML Template</title>
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">

<style type="text/css">
.no-fouc {
	display: none;
}
</style>

</head>

<body class="sticky-header-on tablet-sticky-header" onload="delHtmlTag()">

	<div id="fb-root"></div>
	<div class="container">


		<!-- Header -->
		<header id="header" class="animate-onscroll">
			<!-- Main Header -->
			<div id="main-header">
				<div class="container">
					<div class="row">
						<!-- Logo -->
						<div id="logo" class="col-lg-3 col-md-3 col-sm-3">
							<a href="main-v1.html">
								<img src="http://www.chinatax.gov.cn/dbsource/3999969/3999971.png" alt="Logo">
							</a>
						</div>
						<!-- /Logo -->
						<!-- Main Quote -->
						<div class="col-lg-5 col-md-4 col-sm-4"></div>
						<!-- /Main Quote -->
						<!-- Newsletter -->
						<!-- <div class="col-lg-4 col-md-5 col-sm-5">
							<form id="newsletter" action="php/newsletter-form.php" method="POST">
								<h5>
									<strong>查询新闻</strong>
								</h5>
								<div class="newsletter-form">
									<div class="newsletter-email">
										<input type="text" name="newsletter-email" placeholder="搜索新闻">
									</div>
									<div class="newsletter-submit">
										<input type="submit" value="">
										<i class="icons icon-right-thin"></i>
									</div>
								</div>
							</form>
						</div> -->
						<!-- /Newsletter -->
					</div>
				</div>
			</div>
			<!-- /Main Header -->
			<!-- Lower Header -->
			<div id="lower-header">
				<div class="container">
					<div id="menu-button">
						<div>
							<span></span>
							<span></span>
							<span></span>
						</div>
						<span>Menu</span>
					</div>

					<ul id="navigation">
						<!-- Home -->
						<li class="home-button current-menu-item">
							<a href="${ctx }/">
								<i class="icons icon-home"></i>
							</a>

						</li>
						<!-- /Home -->
						<!-- Pages -->
						<li>
							<a href="${ctx }/index/newsList">
								<span>税务新闻</span>
							</a>
						</li>
						<!-- /Pages -->

						<%-- 	<!-- Media -->

						<li>
							<a href="${ctx }/">违章公告</a>

						</li>
						<!-- /Media -->


						<!-- Get Involved -->
						<li>
							<a href="${ctx }/">举报</a>
						</li>
						<!-- /Get Involved --> --%>


						<!
						-- Events -->
						<li>
							<a href="${ctx }/index/about">
								<span>网站介绍</span>
							</a>

						</li>
						<!-- /Events -->





						<!-- Donate -->
						<li class="donate-button ">
							<a href="#">欢迎，你好！</a>
						</li>
						<!-- /Donate -->

					</ul>

				</div>

			</div>
			<!-- /Lower Header -->


		</header>
		<!-- /Header -->

		<section id="content">

			<!-- Page Heading -->
			<section class="section page-heading animate-onscroll">

				<h1>NEWS</h1>
				<p class="breadcrumb">
					<a href="${ctx }/">首页</a>
					/ 新闻列表
				</p>

			</section>
			<!-- Page Heading -->



			<!-- Section -->
			<section class="section full-width-bg gray-bg">

				<div class="row">

					<div class="col-lg-12 col-md-12 col-sm-12">

						<div class="row">

							<div class="col-lg-12 col-md-12 col-sm-12">
								<!-- Blog Post -->
								<div class="blog-post animate-onscroll">
									<div class="post-image">
										<img src="http://guangdong.chinatax.gov.cn/gdsw/xhtml/images/index/home_banner.png" alt="">
									</div>
									<c:forEach items="${newsList}" var="news" varStatus="vs">
										<div class="post-content">
											<div class="post-header">
												<h3>
													<a href="${ctx }/index/news/${news.newsId }">${news.newsTitle }</a>
												</h3>
												<div class="post-meta">
													<span>
														<a href="${ctx }/index/news/${news.newsId }">
															<fmt:formatDate value="${news.createTime }" pattern="yyyy-MM-dd HH:mm:ss" />
														</a>
													</span>
												</div>
											</div>

											<div class="post-exceprt">
												<a href="${ctx }/index/news/${news.newsId }" class="button read-more-button big button-arrow">详情</a>

											</div>

										</div>
									</c:forEach>
								</div>
								<!-- /Blog Post -->

							</div>


						</div>


					</div>

					<div class="animate-onscroll">

						<div class="divider"></div>
						<div class="numeric-pagination" style="text-align: center;width: 100%;">
							<aside class="paging">
								<a href="${ctx}/index/newsList?pageNum=1">首页</a>
								<c:choose>
									<c:when test="${page.pageNum  > 1 }">
										<a href="${ctx}/index/newsList?pageNum=${page.prePage }">上一页</a>
									</c:when>
									<c:otherwise>
										<a class="disable" style="color:#d2c1c1" href="javascript:void(0)"> 上一页</a>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${page.pageNum < page.lastPage }">
										<a href="${ctx}/index/newsList?pageNum=${page.nextPage }">下一页</a>
									</c:when>
									<c:otherwise>
										<a class="disable" style="color:#d2c1c1" href="javascript:void(0)">下一页</a>
									</c:otherwise>
								</c:choose>
								<a href="${ctx}/index/newsList?pageNum=${page.lastPage }">尾页</a>
							</aside>
						</div>

					</div>

				</div>
	</div>


	</section>
	<!-- /Section -->

	</section>






	<!-- Footer -->
	<jsp:include page="afooter.jsp" />
	<!-- /Footer -->
</body>
<script type="text/javascript">
	function delHtmlTag() {
		var count = '${ fn:length(newsList)}';
		for (var i = 0; i < count; i++) {
			var text = $("#news" + i).text();
			if (text.length > 100) {
				$("#news" + i).text(text.substring(0, 95) + "...");
			}
		}
	}

	window.onload = function() {
		delHtmlTag();
	};
</script>
</html>